﻿using AllIsWell.Tests.TestData;
using NUnit.Framework;

namespace AllIsWell.Services.Tests.PageServiceTests
{
    [TestFixture]
    class GetTodaysPage : PageServiceTest
    {
        private const int DestinyId = 1;

        [Test]
        public void ShouldGetTodaysPageFromPageRepository()
        {
            var expectedPage = PageSeed.GetPage();
            PageRepositoryMock.Setup(repo => repo.GetPageForToday(DestinyId)).Returns(expectedPage);

            var actualPage = PageService.GetTodaysPage(DestinyId);

            Assert.AreEqual(expectedPage, actualPage);
        }
    }
}